with open('./testfile/word.txt', mode='r', encoding='utf-8') as file:
    lines = file.readlines()
    counter = 0
    for temp in lines:
        temp = temp.rstrip('\n')
        list1 = temp.split(' ')
        for x in list1:
            if x == 'xinhua':
                counter += 1

print(counter)
